unit UCadCliente;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, Buttons;

type
  TFormCadCliente = class(TForm)
    Panel1: TPanel;
    GroupBox2: TGroupBox;
    Label2: TLabel;
    Edit1: TEdit;
    Label3: TLabel;
    Edit2: TEdit;
    Label4: TLabel;
    Edit3: TEdit;
    Label5: TLabel;
    ComboBox1: TComboBox;
    Label6: TLabel;
    Edit4: TEdit;
    Label7: TLabel;
    ComboBoxTipoFJ: TComboBox;
    GroupBox3: TGroupBox;
    Label8: TLabel;
    Label9: TLabel;
    Label10: TLabel;
    Edit6: TEdit;
    Edit7: TEdit;
    Edit8: TEdit;
    GroupBox4: TGroupBox;
    Edit11: TEdit;
    Label13: TLabel;
    Edit12: TEdit;
    Label14: TLabel;
    Label15: TLabel;
    Edit13: TEdit;
    Label16: TLabel;
    Edit14: TEdit;
    GroupBox5: TGroupBox;
    Label17: TLabel;
    Label18: TLabel;
    Edit15: TEdit;
    Edit16: TEdit;
    GroupBox7: TGroupBox;
    Label21: TLabel;
    Label23: TLabel;
    Edit19: TEdit;
    Edit20: TEdit;
    Memo1: TMemo;
    Label22: TLabel;
    Panel2: TPanel;
    BitBtn1: TBitBtn;
    BitBtn5: TBitBtn;
    GroupBox6: TGroupBox;
    Label19: TLabel;
    Label20: TLabel;
    Label24: TLabel;
    Edit17: TEdit;
    Edit18: TEdit;
    Label25: TLabel;
    Edit21: TEdit;
    Edit22: TEdit;
    Label26: TLabel;
    Edit23: TEdit;
    Label27: TLabel;
    Edit24: TEdit;
    Label28: TLabel;
    Label1: TLabel;
    Edit5: TEdit;
    Label11: TLabel;
    ComboBoxSituacao: TComboBox;
    Label12: TLabel;
    Edit9: TEdit;
    BitBtn6: TBitBtn;
    BitBtn4: TBitBtn;
    BitBtn3: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn5Click(Sender: TObject);
    procedure ComboBoxTipoFJClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormCadCliente: TFormCadCliente;

implementation

{$R *.dfm}

procedure TFormCadCliente.BitBtn5Click(Sender: TObject);
begin
  close;
end;

procedure TFormCadCliente.ComboBoxTipoFJClick(Sender: TObject);
begin

  if ComboBoxTipoFJ.Text = 'F' then
  begin
    GroupBox5.Enabled := false;
    GroupBox4.Enabled := True;

  end;

  if ComboBoxTipoFJ.Text = 'J' then
  begin
    GroupBox4.Enabled := false;
    GroupBox5.Enabled := True;

  end;

  ComboBoxSituacao.SetFocus;

end;

end.
